// src/App.tsx
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { UserProvider } from '../UserContext/UserContext';
import Xin from '../Xin/Xin';
import Xin2 from '../Xin2/Xin2';

const App: React.FC = () => {
  return (
    <UserProvider>
      <Router>
        <Routes>
          <Route path="/" element={<Xin />} />
          <Route path="/about" element={<Xin2 />} />
        </Routes>
      </Router>
    </UserProvider>
  );
};

export default App;